import Message from './message';

interface Values {
  name: string;
  icon: string;
}
export const getKeys = (obj: Record<string, string | Values>) => {
  if (JSON.stringify(obj) == '{}' || !obj) {
    Message.getError({ mes: '没有可配置的路由' });
  }
  let arr = [];
  for (let key in obj) {
    arr.push(key);
  }
  return arr;
};
